package com.ruoyi.activiti.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.time.DateFormatUtils;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "任务表",description = "")
public class ProcessTask {
    @ApiModelProperty(value = "主键",notes = "")
    private Integer id ;
    /** 标题 */
    @ApiModelProperty(value = "标题",notes = "")
    private String title ;
    @ApiModelProperty(value = "指派人",notes = "")
    private String assignee ;
    /** 任务所属类别 */
    @ApiModelProperty(value = "任务所属类别",notes = "")
    private String type ;
    /** 任务创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "任务创建时间",notes = "")
    private LocalDateTime taskCreateTime ;
    /** 任务对应的流程key */
    @ApiModelProperty(value = "任务对应的流程key",notes = "")
    private String taskKey ;
    /** 任务名称 */
    @ApiModelProperty(value = "任务名称",notes = "")
    private String taskName ;
    /** 任务id */
    @ApiModelProperty(value = "任务id",notes = "")
    private String taskId ;
    /** 流程实例id */
    @ApiModelProperty(value = "流程实例id",notes = "")
    private String instanceId ;
    /** 流程定义key */
    @ApiModelProperty(value = "流程定义key",notes = "")
    private String procDefKey ;
    /** 任务类型 0：待办 1：已办 */
    @ApiModelProperty(value = "任务类型 0：待办 1：已办",notes = "")
    private String taskType ;
    /** 逻辑删除标识 */
    @ApiModelProperty(value = "逻辑删除标识",notes = "")
    private String del ;
    /** 对应的跳转链接地址 */
    @ApiModelProperty(value = "对应的跳转链接地址",notes = "")
    private String url ;
    /** 创建人 */
    @ApiModelProperty(value = "创建人",notes = "")
    private String createdBy ;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间",notes = "")
    private LocalDateTime createdTime ;
    /** 更新人 */
    @ApiModelProperty(value = "更新人",notes = "")
    private String updatedBy ;
    /** 更新时间 */
    @ApiModelProperty(value = "更新时间",notes = "")
    private LocalDateTime updatedTime ;
}
